package com.ssm.pojo;

import org.apache.ibatis.type.Alias;
import org.springframework.stereotype.Component;
import java.io.Serializable;

@Alias("Book")
@Component
public class Book implements Serializable {

  /**
	 * 
	 */
	private static final long serialVersionUID = 7943423070164486891L;




  private long id;
  private String name;
  private String wr;
  private String pu;
  private long typeid;
  private String add;
  private long stock;

 
  //外键
  private Type  type;
  private String tname;
  // 页面数据
  private int start;
  // 当前页数
  private int currentPage;

  public  Book() {
    super();
  }
  public Book(long id,String name,String wr,String pu,long typeid,String add,long stock){
    super();
    this.id = id;
    this.name = name;
    this.wr = wr;
    this.pu =  pu;
    this.typeid = typeid;
    this.add = add;
    this.stock=stock;
  }

  public Type getType() {
    return type;
  }

  public void setType(Type type) {
    this.type = type;
  }

  public long getId() {
    return id;
  }

  public void setId(long id) {
    this.id = id;
  }


  public long getTypeid() {
    return typeid;
  }

  public void setTypeid(long typeid) {
    this.typeid = typeid;
  }
  public String getTname(){return tname;}

  public void setTname(String tname) {
    this.tname = tname;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getPu() {
    return pu;
  }

  public void setPu(String pu) {
    this.pu = pu;
  }


  

  public long getStock() {
    return stock;
  }

  public void setStock(long stock) {
    this.stock = stock;
  }


  public String getAdd() {
    return add;
  }

  public void setAdd(String add) {
    this.add = add;
  }

public String getWr() {
	return wr;
}

public void setWr(String wr) {
	this.wr = wr;
}

  public int getCurrentPage() {
    return currentPage;
  }

  public void setCurrentPage(int currentPage) {
    this.currentPage = currentPage;
  }

  public int getStart() {
    return start;
  }

  public void setStart(int start) {
    this.start = start;
  }
}